<nz-card  [nzTitle]="cardTitle"  [nzExtra]="extraTemplate">
  <nz-table #basicTable [nzData]="pl">
    <thead>
    <tr>
      <th>生产批次</th>
      <th>仓库管理员</th>

      <th>入库时间</th>
      <th>产品名称</th>
      <th>产品数量</th>
      <th>处理情况</th>
      <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let data of basicTable.data">
      <td>{{data.scpc}}</td>
      <td>{{data.ckgly}}</td>

      <td>{{data.rksj}}</td>
      <td>{{data.proname}}</td>
      <td>{{data.pronum}}</td>
      <td>{{data.clqk}}</td>

      <td>
        <button nz-button nzType="primary" (click)="record(data.prohouseid)">设置</button>
      </td>
    </tr>
    </tbody>
  </nz-table>
</nz-card>

  <ng-template #extraTemplate>
    <nz-radio-group  nzButtonStyle="solid">
      <label nz-radio-button nzValue="A" (click)="getCuptestlistByClqk('YCL')">已处理</label>
      <label nz-radio-button nzValue="B" (click)="getCuptestlistByClqk('WCL')">待处理</label>

    </nz-radio-group>
</ng-template>

<ng-template #cardTitle>

  <nz-row [nzGutter]="16">


    <nz-col *ngFor="let s of kl">
      <nz-statistic  [nzValue]="s.prototalnum" [nzTitle]="s.proid" [nzSuffix]="'包'" ></nz-statistic>
    </nz-col>


  </nz-row>

</ng-template>
